home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / lcppb.zip / LCPPANS.ZIP / BORDER.CPP < prev    next >
C/C++ Source or Header  |  1991-07-08  |  873b  |  37 lines

  1. // border.cpp -- Test window border styles
  2.  
  3. #include <iostream.h>
  4. #include <conio.h>
  5. #include <stdio.h>
  6. #include "window.h"
  7.  
  8. main(int argc, char *argv[])
  9. {
  10.   cwindow *theWindow;
  11.   int windowType;
  12.   char string[80];
  13.  
  14.   if (argc < 2)
  15.     windowType = 3;
  16.   else
  17.     windowType = atoi(argv[1]);
  18.   winStruct ws = { 4, 44, 31, 18, 0x07, 0x1f, 0x70, windowType };
  19.   cwindow::startup();
  20.   theWindow = new cwindow(ws, " Border Test ");
  21.   theWindow->showWindow();
  22.   theWindow->gotorc(4, 3);
  23.   sprintf(string, "Type == %d", windowType);
  24.   theWindow->puts(string);
  25.   while (!kbhit()) /* wait */ ;
  26.   theWindow->hideWindow();
  27.   cwindow::shutDown();
  28. }
  29.  
  30.  
  31. // Copyright (c) 1990 by Tom Swan. All rights reserved
  32. // Revision 1.00    Date: 12/06/1990   Time: 08:28 am
  33.  
  34. // Revision 1.01    Date: 07/08/1991   Time: 05:41 pm
  35. // Converted for Borland C++ 2.0
  36.  
  37.